function initSlider() {
	
	
	
	if ($('.slides').length) {
		
		if($('.slides img').length > 1){
			
			$('.slides').slidesjs({
				start: 1,
				width: 700,
				height: 230,
				navigation:  false,
				pagination: false,
				play: {
				  active: false,
					// [boolean] Generate the play and stop buttons.
					// You cannot use your own buttons. Sorry.
				  effect: "slide",
					// [string] Can be either "slide" or "fade".
				  interval: 3000,
					// [number] Time spent on each slide in milliseconds.
				  auto: true,
					// [boolean] Start playing the slideshow on load.
				  swap: false,
					// [boolean] show/hide stop and play buttons
				  pauseOnHover: true,
					// [boolean] pause a playing slideshow on hover
				  restartDelay: 1000
					// [number] restart delay on inactive slideshow
				
				}
		      });
		}
		
		
	}

}


function initCarousel(){
	
	$('#sponsors_carousel').infiniteCarousel({
		transitionSpeed : 500,
		displayTime : 4000,
		inView : 3,
		margin: 10,
		showControls: false,
		autoPilot: true,
		displayProgressRing: false,
		advance: 3,
		imagePath: '/TAKWEEN/resources/images/'
	});
}


function activateTab(tabId){
	
	$(".tab-selector").removeClass("active-tab");
	$(".tab-selector").addClass("tab");
	$("[id$=" + tabId + "]").removeClass("tab");
	$("[id$=" + tabId + "]").addClass("active-tab");
	$("[id$=" + tabId + "]").blur();
}